#待验证数据
import jsonschema

json_data = {
    "success": True,
    "code": 40.789,
    "message": "操作成功"
}

json_schema={"type":"object",
"properties":{
    "success":{"const":True},
    "code":{"const":40.789},
"message":{"const":"操作成功"}
}
}
resp=jsonschema.validate(instance=json_data,schema=json_schema)